package com.china.juju.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_useractivity"
    ,catalog="zutuan_prot"
)
public class JujuUseractivity  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuUseractivity";
	public static final String TABLE_NAME="juju_useractivity";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_userid = "userid"; 
	public static final String P_activity = "activity"; 
	public static final String P_relation = "relation"; 
	public static final String P_createtime = "createtime"; 
	public static final String P_applystatus = "applystatus"; 
	public static final String P_approvemark = "approvemark"; 
	public static final String P_name = "name"; 
	public static final String P_grade = "grade"; 
	public static final String P_college = "college"; 
	public static final String P_major = "major"; 
	public static final String P_mobilephone = "mobilephone"; 
	public static final String P_qq = "qq"; 
	public static final String P_applyreason = "applyreason"; 
	public static final String P_isSigned = "isSigned"; 
	public static final String P_signedAt = "signedAt"; 

     private String id;
     private String userid;
     private String activity;
     private Integer relation;
     private Long createtime;
     private String applystatus;
     private String approvemark;
     private String name;
     private String grade;
     private String college;
     private String major;
     private String mobilephone;
     private String qq;
     private String applyreason;
     private Integer isSigned;
     private Date signedAt;

    public JujuUseractivity() {
    }
	
    public JujuUseractivity(String id) {
        this.id = id;
    }
    public JujuUseractivity(String id, String userid, String activity, Integer relation, Long createtime, String applystatus, String approvemark, String name, String grade, String college, String major, String mobilephone, String qq, String applyreason, Integer isSigned, Date signedAt) {
        this.id = id;
        this.userid = userid;
        this.activity = activity;
        this.relation = relation;
        this.createtime = createtime;
        this.applystatus = applystatus;
        this.approvemark = approvemark;
        this.name = name;
        this.grade = grade;
        this.college = college;
        this.major = major;
        this.mobilephone = mobilephone;
        this.qq = qq;
        this.applyreason = applyreason;
        this.isSigned = isSigned;
        this.signedAt = signedAt;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="USERID", length=36)
    public String getUserid() {
        return this.userid;
    }
    
    public void setUserid(String userid) {
        this.userid = userid;
    }
    
    @Column(name="ACTIVITY", length=36)
    public String getActivity() {
        return this.activity;
    }
    
    public void setActivity(String activity) {
        this.activity = activity;
    }
    
    @Column(name="RELATION")
    public Integer getRelation() {
        return this.relation;
    }
    
    public void setRelation(Integer relation) {
        this.relation = relation;
    }
    
    @Column(name="CREATETIME")
    public Long getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }
    
    @Column(name="applystatus", length=2)
    public String getApplystatus() {
        return this.applystatus;
    }
    
    public void setApplystatus(String applystatus) {
        this.applystatus = applystatus;
    }
    
    @Column(name="approvemark", length=200)
    public String getApprovemark() {
        return this.approvemark;
    }
    
    public void setApprovemark(String approvemark) {
        this.approvemark = approvemark;
    }
    
    @Column(name="NAME", length=36)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="GRADE", length=36)
    public String getGrade() {
        return this.grade;
    }
    
    public void setGrade(String grade) {
        this.grade = grade;
    }
    
    @Column(name="COLLEGE", length=36)
    public String getCollege() {
        return this.college;
    }
    
    public void setCollege(String college) {
        this.college = college;
    }
    
    @Column(name="MAJOR", length=36)
    public String getMajor() {
        return this.major;
    }
    
    public void setMajor(String major) {
        this.major = major;
    }
    
    @Column(name="MOBILEPHONE", length=36)
    public String getMobilephone() {
        return this.mobilephone;
    }
    
    public void setMobilephone(String mobilephone) {
        this.mobilephone = mobilephone;
    }
    
    @Column(name="QQ", length=36)
    public String getQq() {
        return this.qq;
    }
    
    public void setQq(String qq) {
        this.qq = qq;
    }
    
    @Column(name="applyreason", length=200)
    public String getApplyreason() {
        return this.applyreason;
    }
    
    public void setApplyreason(String applyreason) {
        this.applyreason = applyreason;
    }
    
    @Column(name="is_signed")
    public Integer getIsSigned() {
        return this.isSigned;
    }
    
    public void setIsSigned(Integer isSigned) {
        this.isSigned = isSigned;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="signed_at", length=19)
    public Date getSignedAt() {
        return this.signedAt;
    }
    
    public void setSignedAt(Date signedAt) {
        this.signedAt = signedAt;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


